﻿@model IEnumerable<Project_KhuyenMaiVang.Models.MemberDTO>

@{
    ViewBag.Title = "QuanLyThanhVien";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Quản Lý Thành Viên</h2>

<table border="1" id="myTable">
    <thead>
    <tr>
        <th>
            Tài Khoản Palpal
        </th>
        <th>
            Email
        </th>
        <th>
            Địa Chỉ
        </th>
        <th>
            Tên Khách Hàng
        </th>
        <th>
            Hành Động
        </th>
    </tr>
    </thead>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TaiKhoanPayPal)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DiaChi)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TenKhachHang)
        </td>
        <td>
            @Html.ActionLink("Cập Nhật", "EditThanhVien", new { ID = item.IDAccount })
        </td>
    </tr>
}
</table>
<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.tablesorter.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.tablesorter.pager.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#myTable").tablesorter();
        $("#myTable").hide();
        $("#myTable").toggle(500);
    }
); 
</script>
